<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreataItvTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
          Schema::create('itv', function (Blueprint $table) {
            $table->increments('id');
            $table->unsignedInteger('money');
            $table->string('name') -> comment('广告公司名字');
            $table->string('pic') -> comment('广告logo');
            $table->string('url') -> comment('广告主的url');
            $table->timestamps();
          });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('itv');
    }
}
